$(function(){
    $("#btn-captcha").click(function (e) {
        email = $("#email").val()
        $.ajax({
            url:"/user/captcha?email="+email,
            success:function (result) {
                console.log(result)
                alert("发送成功")
            },
            error:function (err) {
                console.log(err)
                alert("发送失败!")
            }
        })
    })
})